package com.app.mapper;

import com.app.model.ComplaintModel;
import com.app.model.UserModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface ComplaintMapper extends BaseMapper<ComplaintModel> {
    List<ComplaintModel> selectComplaintList(Integer page, Integer limit, String keyword, String startTime, String endTime);

    int selectComplaintCount(String keyword, String startTime, String endTime);

    List<UserModel> whiteList();

    int getComplaintCount(String keyword, String startTime, String endTime, String isJiuquan);

    List<ComplaintModel> getComplaintList(Integer page, Integer limit, String keyword, String startTime, String endTime, String isJiuquan);
}
